package com.enjoy.service;

import com.alibaba.dubbo.config.annotation.Method;
import com.alibaba.dubbo.config.annotation.Service;
import com.xiangxue.jack.service.UserService;

/**
 * <p>TODO</p>
 *
 * @Author Ellison Pei
 * @Date 2021/7/13 15:17
 **/
//使用dubbo的注解
// 令牌验证，在注册中心控制权限 token = "true" ， 规定想要走我的服务，就必须走我定义的zk
@Service(methods = {@Method(name = "doKill", executes = 10, actives = 10)}, connections = 10, token = "true")
public class UserServiceImpl implements UserService {
    @Override
    public String queryUser(String userId) {
        System.out.println("==========" + userId);
        return "OK======" + userId;
    }

    @Override
    public void doKill(String killid) {

    }
}
